﻿using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TXTD.Admin.Data.Entitys;
using TXTD.Admin.Data.Entitys.System;

namespace TXTD.Admin.Data.EntityConfiguration.System
{
    public class SysDictionaryItemsEntityTypeConfiguration : IEntityTypeConfiguration<SysDictionaryItems>
    {
        public void Configure(EntityTypeBuilder<SysDictionaryItems> builder)
        {

            #region 外键
            builder.HasOne(p => p.SysDictionary).WithMany(b => b.SysDictionaryItems).HasForeignKey(p => p.DictionaryId);
            #endregion
        }
    }
}
